﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Dot5Demo
{
    internal static class Logger
    {
        public static void Info(string msg, Exception ex = null)
        {
            Dot5.Log.LogFactory.GetNLogger().Info(msg, ex);
            Dot5.Log.LogFactory.GetLog4NetLogger().Info(msg, ex);
        }
        public static void Warn(string msg, Exception ex = null)
        {
            Dot5.Log.LogFactory.GetNLogger().Warn(msg, ex);
            Dot5.Log.LogFactory.GetLog4NetLogger().Warn(msg, ex);
        }
        public static void Error(string msg, Exception ex = null)
        {
            Dot5.Log.LogFactory.GetNLogger().Error(msg, ex);
            Dot5.Log.LogFactory.GetLog4NetLogger().Error(msg, ex);
        }
        public static void Debug(string msg, Exception ex = null)
        {
            Dot5.Log.LogFactory.GetNLogger().Debug(msg, ex);
            Dot5.Log.LogFactory.GetLog4NetLogger().Debug(msg, ex);
        }
    }
}
